home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-08-29 | 2.2 KB | 112 lines | [TEXT/MPS ] |
- # makefile - Reusable code makefile.
- #
- # I use my "Lib" folder to keep all of my reusable code. This code is
- # used, or could be used, by more than one program.
- #
- # C modules.
- # ----------
- #
- # fsu - File system utilities.
- # hlp - Help window manager.
- # oop - Object-oriented window and command manager.
- # rep - Report manager.
- # rpp - Report printing manager.
- # scn - Volume scanning.
- # sfu - Standard file utilities.
- # tcg - Think C glue. (not used by MPW version).
- # utl - Utilities.
- # vol - Volume selection.
- #
- # Assembler modules.
- # ------------------
- #
- # showinit - Mercer et al's ShowINIT.
- # SafeStart - François Grieu's 64K ROM checker.
- #
- # Definition functions.
- # ---------------------
- #
- # ldf - Custom list definition function for reports.
- #
- # Tools.
- # ------
- #
- # wrap - Wrap paragraphs.
- # cvrt - Compile document.
-
- COptions = -mbg on -sym off -r
-
- ObjFiles = ∂
- fsu.c.o ∂
- hlp.c.o ∂
- oop.c.o ∂
- rep.c.o ∂
- rpp.c.o ∂
- scn.c.o ∂
- sfu.c.o ∂
- utl.c.o ∂
- vol.c.o ∂
-
- fsu.c.o ƒ precompile utl.h fsu.h
- hlp.c.o ƒ precompile rep.h rpp.h utl.h hlp.h doc.h
- oop.c.o ƒ precompile oop.h utl.h
- rep.c.o ƒ precompile rep.h utl.h doc.h sfu.h fsu.h
- rpp.c.o ƒ precompile rpp.h utl.h doc.h
- scn.c.o ƒ precompile scn.h utl.h
- sfu.c.o ƒ precompile sfu.h utl.h
- utl.c.o ƒ precompile utl.h
- vol.c.o ƒ precompile vol.h utl.h
-
- precompile ƒ precompile.c
- C {COptions} precompile.c
-
- # Special "all" target to bring everything up-to-date.
-
- all ƒ lib.o showinit.o safestart.o ldf.o wrap cvrt
-
- # The library of reusable code modules.
-
- lib.o ƒ {ObjFiles}
- lib -o lib.o {ObjFiles}
-
- # ShowINIT.
-
- showinit.o ƒ showinit.a
- Asm -w showinit.a -o showinit.o
-
- # SafeStart
-
- safestart.o ƒ safestart.a
- Asm -w safestart.a -o safestart.o
-
- # List definition function.
-
- ldf.o ƒ ldf.c doc.h precompile
- C ldf.c -o ldf.o {COptions}
-
- # wrap tool.
-
- wrapObjects = wrap.c.o
-
- wrap ƒ {wrapObjects}
- Link -d -c 'MPS ' -t MPST ∂
- {wrapObjects} ∂
- "{Libraries}"stubs.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- "{CLibraries}"StdCLib.o ∂
- -o wrap
-
- # cvrt tool.
-
- cvrtObjects = cvrt.c.o
-
- cvrt ƒ {cvrtObjects}
- Link -d -c 'MPS ' -t MPST ∂
- {cvrtObjects} ∂
- "{Libraries}"stubs.o ∂
- "{Libraries}"Interface.o ∂
- "{Libraries}"Runtime.o ∂
- "{CLibraries}"StdCLib.o ∂
- -o cvrt
-